﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zen4SyncDashboard.DAL;
using System.Threading.Tasks;
using System.Collections.ObjectModel;

namespace Zen4SyncDashboard.ViewModel
{
    public class TestServerViewModel : BaseViewModel
    {
        #region - Bound Properties -

        public ObservableCollection<testServer> TestServers { get; private set; }

        #endregion - Bound Properties -

        #region - Commands -



        #endregion - Commands -

        public TestServerViewModel()
        {
            InitializeBoundProperties();
            InitializeCommands();
        }

        #region - Initialization Methods -

        private void InitializeBoundProperties()
        {
            Task.Factory.StartNew(
                () =>
                {
                    base.SetWorkStatus("Fetching Test Servers...");
                    TestServers = Zen4SyncModel.TestServer.GetAll();
                    base.OnPropertyChanged("TestServers");

                    base.SetWorkStatus(false);
                });
        }

        private void InitializeCommands()
        {
            
        }

        #endregion - Initialization Methods -
    }
}
